<?php
$settings = array (
  'private_key' => $form_values['private_key'],
  'public_certificate' => $form_values['public_certificate'],
  'paypal_certificate' => $form_values['paypal_certificate'],
  'certificate_id' => $form_values['certificate_id'],
  'pdt_token' => $form_values['pdt_token'],
  'image' => $form_values['image'],
  'receiver_email' => $form_values['receiver_email'],
  'url' => $form_values['url'],
  'return_url' => $form_values['return_url'],
  'cancel_url' => $form_values['cancel_url'],
  'ipnrb_url' => $form_values['ipnrb_url'],
  'currency_code' => $form_values['currency_code'],
  'debug' => $form_values['debug'],
  'min_amount' => $form_values['min_amount'],
  'roles' => $form_values['roles']
);

variable_set ('paypal_settings', $settings);

drupal_set_message (t('Saved your settings.'));

